﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using skiordiecore;
using skiordie_gui;
using System.Windows.Forms;

namespace skiordie_gui
{
    public partial class ChampionshipForm : Form
    {
        public ChampionshipForm()
        {
            InitializeComponent();
        }

        public String name { get; set; }
        public DateTime eventDate { get; set; }

        private void button1_Click(object sender, EventArgs e)
        {
            name = textBox1.Text;
            eventDate = dateTimePicker1.Value;
            this.DialogResult = DialogResult.OK;
        }

        private void ChampionshipForm_Shown(object sender, EventArgs e)
        {
            if (Tag != null)
            {
                textBox1.Text = name;
                dateTimePicker1.Value = eventDate;
            }
        }
    }
}
